import request from "../utils/request";
// 根据id查找评价
export function getById(id) {
  return request.get(`/comment/${id}`);
}
// 获取评价
export function getList(params) {
  return request.get("/comment", { params: params });
}

// 添加评价
export function addComment(data) {
  return request.post("/comment", data);
}

// 修改评价
export function modComment(id, data) {
         return request.put(`/comment/${id}`, data);
       }
//删除评价
export function deleteComment(id, data) {
         return request.delete(`/comment/${id}`, data);
       }
